package Ketang0416;

import java.util.Scanner;

public class 钢管 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("客户想要购买的钢管长度：");
		int a = in.nextInt();
		if (a % 3 == 0) {
			int b = a / 3;
			System.out.println("则需要购买" + b + "根");
		} else {
			int c = a / 3 + 1;
			System.out.println("则需要购买" + c + "根");
		}
	}

}
